<style>
    .zend_form_custom dt { clear:none; width:45px; }  
    .zend_form_custom input[type=text] { width: 120px; } 
</style>

<form id="ApplicationLoan" 
      enctype="application/x-www-form-urlencoded" 
      method="<?php echo $this->form->getMethod() ?>" 
      title="<?php echo $this->form->getAttrib("title") ?>" 
      action="<?php echo $this->form->getAction() ?>">
    
    <?php echo $this->form->getElement('LoanId') ?>
    
    <div style="height: auto !important; position: absolute; left: 10px; top: 16px; bottom: 130px; overflow-y: hidden;">
        <img class="shadow" src="/default/photo/full/cat/i/id/<?php echo $this->loan->ClientId ?>" />
    </div>

    <div style="height: auto !important; position: absolute; left: 180px; top: 16px; bottom: 130px; overflow-y: hidden;">
        <dl class="zend_form">
            <dt><?php echo $this->translate("Borrower") ?></dt>
            <dd><?php echo $this->loan->ClientFullName ?><br />
                <?php echo $this->loan->ClientCode ?></dd>
            <dt><?php echo $this->translate("Group") ?></dt>
            <dd><?php echo $this->loan->GroupName ?></dd> 
            <dt><?php echo $this->translate("Loan code") ?></dt>
            <dd><?php echo $this->loan->LoanId ?></dd> 
            <dt><?php echo $this->translate("Product line") ?></dt>
            <dd><?php echo $this->loan->ProductLine ?></dd> 
            <dt><?php echo $this->translate("Program") ?></dt>
            <dd><?php echo $this->loan->ProgramName ?></dd> 
            <dt><?php echo $this->translate("Product") ?></dt>
            <dd><?php echo $this->loan->LoanProductName ?></dd> 
            <dt><?php echo $this->translate("Location") ?></dt>
            <dd><?php echo $this->loan->LocationName ?></dd> 
            <dt><?php echo $this->translate("Community") ?></dt>
            <dd><?php echo $this->loan->Community ?></dd> 
            <dt><?php echo $this->translate("Officer") ?></dt>
            <dd><?php echo $this->loan->OfficerFullName ?><br />
                <?php echo $this->loan->OfficerUsername ?></dd>
        </dl>
    </div>
    
    <div style="height: auto !important; position: absolute; left: 500px; top: 16px; bottom: 130px; overflow-y: hidden;">     
        <dl class="zend_form">
            <dt></dt>
            <dd class="matrixRow">
                <div class="label"><?php echo $this->translate("Min")  ?></div>
                <div class="label"><?php echo $this->translate("Std")  ?></div>
                <div class="label"><?php echo $this->translate("Max")  ?></div>
            </dd>
            <dt class="required"><?php echo $this->form->getElement('AnnualPercentageRate')->getLabel() ?></dt>
            <dd class="matrixRow">
                <?php echo $this->form->getElement('AnnualPercentageRateMin')  ?>
                <?php echo $this->form->getElement('AnnualPercentageRate')  ?>
                <?php echo $this->form->getElement('AnnualPercentageRateMax') ?>
            </dd>
            <dt></dt>
            <dd>
                <ul class="errors">
                <?php foreach($this->form->getElement('AnnualPercentageRate')->getMessages() as $error): ?>
                    <li><?php echo $error; ?></li>
                <?php endforeach; ?>
                </ul>
            </dd>
            <dt class="required"><?php echo $this->form->getElement('LoanInsurancePct')->getLabel() ?></dt>
            <dd class="matrixRow">
                <?php echo $this->form->getElement('LoanInsurancePctMin')  ?>
                <?php echo $this->form->getElement('LoanInsurancePct')  ?>
                <?php echo $this->form->getElement('LoanInsurancePctMax') ?>
            </dd>
            <dt></dt>
            <dd>
                <ul class="errors">
                <?php foreach($this->form->getElement('LoanInsurancePct')->getMessages() as $error): ?>
                    <li><?php echo $error; ?></li>
                <?php endforeach; ?>
                </ul>
            </dd>
            <dt class="required"><?php echo $this->form->getElement('HealthInsurancePct')->getLabel() ?></dt>
            <dd class="matrixRow">
                <?php echo $this->form->getElement('HealthInsurancePctMin')  ?>
                <?php echo $this->form->getElement('HealthInsurancePct')  ?>
                <?php echo $this->form->getElement('HealthInsurancePctMax') ?>
            </dd>
            <dt></dt>
            <dd>
                <ul class="errors">
                <?php foreach($this->form->getElement('HealthInsurancePct')->getMessages() as $error): ?>
                    <li><?php echo $error; ?></li>
                <?php endforeach; ?>
                </ul>
            </dd>
            <dt class="required"><?php echo $this->form->getElement('AdministrativeFeePct')->getLabel() ?></dt>
            <dd class="matrixRow">
                <?php echo $this->form->getElement('AdministrativeFeePctMin')  ?>
                <?php echo $this->form->getElement('AdministrativeFeePct')  ?>
                <?php echo $this->form->getElement('AdministrativeFeePctMax') ?>
            </dd>
            <dt></dt>
            <dd>
                <ul class="errors">
                <?php foreach($this->form->getElement('AdministrativeFeePct')->getMessages() as $error): ?>
                    <li><?php echo $error; ?></li>
                <?php endforeach; ?>
                </ul>
            </dd>
            <dt class="required"><?php echo $this->form->getElement('PrincipalGraceRate')->getLabel() ?></dt>
            <dd class="matrixRow">
                <?php echo $this->form->getElement('PrincipalGraceRateMin')  ?>
                <?php echo $this->form->getElement('PrincipalGraceRate')  ?>
                <?php echo $this->form->getElement('PrincipalGraceRateMax') ?>
            </dd>
            <dt></dt>
            <dd>
                <ul class="errors">
                <?php foreach($this->form->getElement('PrincipalGraceRate')->getMessages() as $error): ?>
                    <li><?php echo $error; ?></li>
                <?php endforeach; ?>
                </ul>
            </dd>
            <dt class="required"><?php echo $this->form->getElement('DelayPenaltyRate')->getLabel() ?></dt>
            <dd class="matrixRow">
                <?php echo $this->form->getElement('DelayPenaltyRateMin')  ?>
                <?php echo $this->form->getElement('DelayPenaltyRate')  ?>
                <?php echo $this->form->getElement('DelayPenaltyRateMax') ?>
            </dd>
            <dt></dt>
            <dd>
                <ul class="errors">
                <?php foreach($this->form->getElement('DelayPenaltyRate')->getMessages() as $error): ?>
                    <li><?php echo $error; ?></li>
                <?php endforeach; ?>
                </ul>
            </dd>
            <dt class="required"><?php echo $this->form->getElement('DelayPenaltyFixedCharge')->getLabel() ?></dt>
            <dd class="matrixRow">
                <?php echo $this->form->getElement('DelayPenaltyFixedChargeMin')  ?>
                <?php echo $this->form->getElement('DelayPenaltyFixedCharge')  ?>
                <?php echo $this->form->getElement('DelayPenaltyFixedChargeMax') ?>
            </dd>
            <dt></dt>
            <dd>
                <ul class="errors">
                <?php foreach($this->form->getElement('DelayPenaltyFixedCharge')->getMessages() as $error): ?>
                    <li><?php echo $error; ?></li>
                <?php endforeach; ?>
                </ul>
            </dd>
            
            <dt><br /><br /></dt>
            
            <dt class="required"><?php echo $this->form->getElement('Principal')->getLabel() ?></dt>
            <dd class="matrixRow">
                <?php echo $this->form->getElement('Principal')  ?>
            </dd>
            <dt></dt>
            <dd>
                <ul class="errors">
                <?php foreach($this->form->getElement('Principal')->getMessages() as $error): ?>
                    <li><?php echo $error; ?></li>
                <?php endforeach; ?>
                </ul>
            </dd>
        </dl>
    </div>
    
    <div style="position: absolute; left: 980px; top: 30px;">
        <?php echo $this->form->getElement('Submit') ?>
    </div>
    
</form>